<%-- 
    Document   : timkiemnhanh
    Created on : Oct 17, 2011, 1:10:03 AM
    Author     : linh
--%>


<%@page import="MODEL.DAO.LocSanPhamDAO"%>
<%@page import="MODEL.POJO.LocSanPhamPOJO"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
    String loaisanpham=(String)request.getAttribute("LoaiSanPhams");
%>
<div class="tieude">Lọc sản phẩm</div>
<div class="noidung">
    <div class="box">
        <div><strong>Tìm theo giá</strong></div>
        <div style="font-size:14px">
            - <a href="DanhSachSanPhamController?Action=<%=loaisanpham %>&giatu=0&giaden=2000000&Trang=1&Text=Duoi 2.000.000 vnd"><span style="color:#0066FF; CURSOR: hand" onMouseOver="this.style.color='#FF0000'; " onMouseOut="this.style.color='#0066FF'; ">Dưới 2.000.000 vnd</span></a> <br>
            - <a href="DanhSachSanPhamController?Action=<%=loaisanpham %>&giatu=2000000&giaden=5000000&Trang=1&Text=2.000.000-5.000.000 vnd"><span style="color:#0066FF; CURSOR: hand" onMouseOver="this.style.color='#FF0000'; " onMouseOut="this.style.color='#0066FF'; ">2.000.000-5.000.000 vnd</span></a><br>
            - <a href="DanhSachSanPhamController?Action=<%=loaisanpham %>&giatu=5000000&giaden=10000000&Trang=1&Text=5.000.000-10.000.000 vnd"><span style="color:#0066FF; CURSOR: hand" onMouseOver="this.style.color='#FF0000'; " onMouseOut="this.style.color='#0066FF'; ">5.000.000-10.000.000 vnd</span></a><br>
            - <a href="DanhSachSanPhamController?Action=<%=loaisanpham %>&giatu=10000000&giaden=15000000&Trang=1&Text=10.000.000-15.000.000 vnd"><span style="color:#0066FF; CURSOR: hand" onMouseOver="this.style.color='#FF0000'; " onMouseOut="this.style.color='#0066FF'; ">10.000.000-15.000.000 vnd</span></a><br>
            - <a href="DanhSachSanPhamController?Action=<%=loaisanpham %>&giatu=15000000&giaden=20000000&Trang=1&Text=15.000.000-20.000.000 vnd"><span style="color:#0066FF; CURSOR: hand" onMouseOver="this.style.color='#FF0000'; " onMouseOut="this.style.color='#0066FF'; ">15.000.000-20.000.000 vnd</span></a><br>
            - <a href="DanhSachSanPhamController?Action=<%=loaisanpham %>&giatu=20000000&giaden=30000000&Trang=1&Text=20.000.000-30.000.000 vnd"><span style="color:#0066FF; CURSOR: hand" onMouseOver="this.style.color='#FF0000'; " onMouseOut="this.style.color='#0066FF'; ">20.000.000-30.000.000 vnd</span></a><br>
            - <a href="DanhSachSanPhamController?Action=<%=loaisanpham %>&giatu=30000000&giaden=100000000&Trang=1&Text=Tren 30.000.000 vnd"><span style="color:#0066FF; CURSOR: hand" onMouseOver="this.style.color='#FF0000'; " onMouseOut="this.style.color='#0066FF'; ">Trên 30.000.000 vnd</span></a>
            </div>
        <%
            ArrayList<LocSanPhamPOJO> dslsp = (ArrayList<LocSanPhamPOJO>) request.getAttribute("LocSanPhams");
            for (int i = 0; i < dslsp.size(); i++) {
                LocSanPhamPOJO lsp = dslsp.get(i);
                String tenmuc = lsp.getTenmuc();
        %>
        <div><strong><%=tenmuc%></strong></div>
        <%      ArrayList<LocSanPhamPOJO> spl = LocSanPhamDAO.LayLocsp(tenmuc);
                for (int j = 0; j < spl.size(); j++) {
                    LocSanPhamPOJO tensploc = spl.get(j);
        %>
        <div style="color:#0000FF">- <a href="DanhSachSanPhamController?Action=<%=loaisanpham %>&idsanpham=<%=tensploc.getIdsanpham() %>&Trang=1"><span style="color:#0066FF; CURSOR: hand" onMouseOver="this.style.color='#FF0000'; " onMouseOut="this.style.color='#0066FF'; "><%=tensploc.getTensploc() %></span></a></div>
        <%      }
            }%>
    </div>
</div>